package com.water.tao.model;

public class Stock {
    private String stockCode;
    private String stockName;
    private String listDate;
    private String marketType; // 例如：主板A股, 科创板

    // 构造函数
    public Stock(String stockCode, String stockName, String listDate, String marketType) {
        this.stockCode = stockCode;
        this.stockName = stockName;
        this.listDate = listDate;
        this.marketType = marketType;
    }

    // Getter 方法
    public String getStockCode() {
        return stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public String getListDate() {
        return listDate;
    }

    public String getMarketType() {
        return marketType;
    }

    // Setter 方法 (如果需要)
    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public void setListDate(String listDate) {
        this.listDate = listDate;
    }

    public void setMarketType(String marketType) {
        this.marketType = marketType;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "stockCode='" + stockCode + '\'' +
                ", stockName='" + stockName + '\'' +
                ", listDate='" + listDate + '\'' +
                ", marketType='" + marketType + '\'' +
                '}';
    }
}
